package cc.mrbird.web.dao;

import cc.mrbird.system.domain.MidStudent;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.test.context.junit4.SpringRunner;

import java.util.List;

import static org.junit.Assert.*;

@RunWith(SpringRunner.class)
@SpringBootTest
public class MidStudentMapperTest {

    @Autowired
    private MidStudentMapper midStudentMapper;


    @Test
    public void findMidStudentByCondition() {
        MidStudent midStudent = new MidStudent();
        midStudent.setMidStudentId("2018343112");
        List<MidStudent> midStudents = midStudentMapper.findMidStudentByCondition(midStudent);
        assertEquals(1,midStudents.size());
    }
}